Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add project tree option to rename item to first heading #1692

Merged
merged 2 commits into from
Feb 11, 2024
Merged

Conversation

vkbo
Copy link
Owner

@vkbo vkbo commented Feb 11, 2024

Summary:

This is a simple PR that adds a context menu option "Rename to Heading" under the regular "Rename" option, if the selected item is a document, and there is a heading recorded by the index. When triggered, this option pre-populates the text field of the Edit Label pop-up with the heading text rather than the current item label. It uses entirely pre-existing functionality, so the PR simply adds the option and updates the unit test.

Related Issue(s):

Closes #1443

Reviewer's Checklist:

  • The header of all files contain a reference to the repository license
  • The overall test coverage is increased or remains the same as before
  • All tests are passing
  • All flake8 checks are passing and the style guide is followed
  • Documentation (as docstrings) is complete and understandable
  • Only files that have been actively changed are committed

@vkbo vkbo added this to the Release 2.3 Beta 1 milestone Feb 11, 2024
@vkbo vkbo linked an issue Feb 11, 2024 that may be closed by this pull request
@vkbo vkbo changed the title Add project tree oprtion to rename item to first heading Add project tree option to rename item to first heading Feb 11, 2024
@vkbo vkbo merged commit 81a9d51 into dev Feb 11, 2024
9 checks passed
@vkbo vkbo deleted the rename_to_heading branch February 11, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change behavior of asking for a chapter/scene name on creation.
1 participant